DEVICE CALENDAR

0.1 Introductipon

The CALENDAR device is used to get and set the current date and time information.

0.2 Device declaration

The device does not use hardware resources. It is not necessary to define the sampling time because the operation is carried out in a time not significantly. In the INTDEVICE section of the configuration unit must be add the following definition:

;--------------------------------- 
; Device declaration
;--------------------------------- 
INTDEVICE 
<device_name>  CALENDAR

Where:

<device_name>device name assigned
CALENDARkeyword that identifies the device calendar.

Declaration example:

;--------------------------------- 
; Device declaration
;--------------------------------- 
INTDEVICE 
myCalen  CALENDAR

0.3 Operation

The device continuously updates the current date and time data.

0.4 Parameters table

NomeDimensioneValore di defaultTipo di accessoUnità di misuraRange validoCondizioni di scritturaDescrizione
secByte-RWs (secondi)da 0 a 59-Secondi
Il parametro indica i secondi dell'orario attuale.
minByte-RWminutida 0 a 59-Minuti
Il parametro indica i minuti dell'orario attuale.
hourByte-RWoreda 0 a 23-Ora
Il parametro indica l'ora dell'orario attuale.
dateByte-RWgiornida 1 a 31-Giorno
Il parametro indica il giorno della data attuale.
monthByte-RWmeseda 1 a 12-Mese
Il parametro indica il mese della data attuale secondo la seguente tabella:
1 gennaio
2 febbraio
3 marzo
4 aprile
5 maggio
6 giugno
7 luglio
8 agosto
9 settembre
10 ottobre
11 novembre
12 dicembre
yearWord-RWannoda 2000 a 2100-Anno
Il parametro indica l'anno corrente.

0.5 Tabella stati

Non vi sono stati.

0.6 Tabella comandi

Non vi sono comandi.